public class account {
    private  double balance;

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }
    //取钱
    public  void withdraw(double money){
        this.balance=this.balance-money;
    }
    //存钱
    public  void deposit(double money){
        this.balance=this.balance+money;
    }
}
